<?

include_once "accesscontrol.php";

$q1 = "select * from job_plan";
$r1 = mysql_query($q1) or die(mysql_error());

?>

<html>
<body>


<table align=center width=460>

<tr>
	<td colspan=2 align=left class=HeaderClass>
	  <p>&nbsp;</p>
	  <p>Update your account to access this site feature!    </p></td>
</tr>
<tr>
  <td colspan=2 align=left class=HeaderClass>&nbsp;</td>
</tr>

<?
while($a1 = mysql_fetch_array($r1))
{
	if($a1[price] > 0)
	{

		$pname = urlencode($a1[PlanName]);
	echo "
	<tr>
	<td width=170>
	<b>$a1[PlanName]</b>
	<ul>
	<li>$a1[postings] job postings; </li>
	<li>$a1[reviews] resume reviews; </li>
	<li><b>price: <font color=#336699>$$a1[price] </font</b></li>
	</ul>
	</td>

	<td width=300>
		<table align=center width=300>
		<tr>
				<td width=150 align=center>

		<a href=\"https://www.paypal.com/xclick?business=$aset[paypal]&item_name=$a1[PlanName]&first_name=$a1[FirstName]&last_name=$a1[LastName]&email=$a1[email]&item_number=1&custom=$a1[PlanID]|$a1[price]|$_SESSION[ename]&amount=$a1[price]&notify_url=http://$_SERVER[HTTP_HOST]$dir/employers/notify.php&return=http://$_SERVER[HTTP_HOST]$dir/employers/thanks.php\"><img src=\"http://images.paypal.com/images/x-click-but01.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\"></a>";


		echo "</td>\n</tr>\n\n";


		echo "</table>
	</td>

</tr>";
	}
	else
	{
	echo "
	<tr>
	<td>
	<b>$a1[PlanName]</b>
	<ul>
	<li>$a1[postings] job postings; </li>
	<li>$a1[reviews] resume reviews; </li>
	<li><b>price: <font color=#336699>$$a1[price] </font</b></li>
	</ul>
	</td>

	<td>
	<form action=pay2.php method=post>
	<input type=hidden name=plan value=\"$a1[PlanName]\">
	<input type=hidden name=reviews value=\"$a1[reviews]\">
	<input type=hidden name=postings value=\"$a1[postings]\">
	<input type=hidden name=price value=\"$a1[price]\">
	<input type=submit value=\"Get if free\">
	</form>
	</td>";
	}
	
}

?>
</table>
</body>
</html>
<? include_once('../footer.php'); ?>